home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / bootup / boot_a2m / coldb_11 / coldb_11.c < prev    next >
C/C++ Source or Header  |  1995-05-02  |  2KB  |  52 lines

  1. /********************************************************/
  2. /*                            */
  3. /*               Cold boot            */
  4. /*                            */
  5. /*        V 1.1    6/12/90                */
  6. /*                            */
  7. /*        Mark Williams "C"  3.0.5        */
  8. /*                            */
  9. /********************************************************/
  10.  
  11. # include <osbind.h>
  12. # include <xbios.h>
  13.             
  14. # define dump_vec    (( long *) 0x502) /* define dump_vec as a pointer to   
  15.                                           hard copy dump vector             */
  16.    long _stksize = 64L;   /* We need very little stack for this             */
  17.    extern void hot_key();
  18.    char *msg[16] =  {"\033E\n\n\r",
  19.                   "  ****************************\r\n",
  20.           "  *                          *\r\n",
  21.               "  *         Larry's          *\r\n",
  22.           "  *       Magic Button       *\r\n",
  23.           "  *                          *\r\n",
  24.           "  *      Alternate Help      *\r\n",
  25.           "  *      Will generate A     *\r\n",
  26.           "  *         Coldboot         *\r\n",
  27.           "  *          V 1.2           *\r\n",
  28.           "  *  Compuserv 73217,2142    *\r\n",
  29.           "  *  Delphi    Polock        *\r\n",
  30.           "  *                          *\r\n",
  31.           "  *    Press any key to      *\r\n",
  32.           "  *        Continue          *\r\n",
  33.           "  ****************************\r\n" };
  34.            
  35. main()
  36. {
  37.  
  38.    long save_ssp;
  39.  
  40.    for(save_ssp=0; save_ssp<16; save_ssp++)
  41.     Cconws(msg[save_ssp]);
  42.    save_ssp = Super(0L);    /* save stack pointer go to supervisor mode */
  43.    *dump_vec =  (( long)hot_key);     /* point dump_vec to our routine    */  
  44.    while(Bconstat(2) == 0);          /* wait for key press            */
  45.    Super(save_ssp);
  46.    Ptermres(0x03c0L,0);  /* Terminate and stay resident        */
  47.  
  48. }
  49.         
  50.  
  51.  
  52.